import { Router } from 'express';
import * as Controller from '../api/controllers/specialist.controller';

const router = Router();

router
  .route('/')
  .get(
    Controller.getSpecialists
  );

router
  .route('/:id')
  .get(
    Controller.getSpecialistById
  );

router
  .route('/')
  .post(
    Controller.addSpecialist
  );

  router
  .route('/save')
  .post(
    Controller.addSpecialists
  );

router
  .route('/:id')
  .put(
    Controller.updateSpecialistById
  );

router
  .route('/:id')
  .delete(
    Controller.deleteSpecialistById
  );

export default router;